package com.xiaotao.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private String orderNum;
    private BigDecimal totalPrice;
    private Integer userId;
    private Integer addressId;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createtime;
    private Integer status;
}
